package com.moodair.pip.plugin;

import com.moodair.pip.core.ContextHandler;
import com.moodair.pip.core.InstanceBuildContext;
import com.moodair.pip.core.annotation.PluginComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@PluginComponent("one")
public class One implements ContextHandler<InstanceBuildContext> {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public boolean handle(InstanceBuildContext context) {
        logger.info("--第一个任务--");
        logger.info("--更新modelId为1--");
        context.setModelId(1L);
        return true;
    }
}